package com.chinasofti.enmu2;

enum Season{
    SPRING("春"){
        @Override
        public void show() {
            System.out.println(this.name);
        }
    },SUMMER("夏"){
        @Override
        public void show() {
            System.out.println(this.name);
        }
    },AUTUMN("秋"){
        @Override
        public void show() {
            System.out.println(this.name);
        }
    },WINTER("冬"){
        @Override
        public void show() {
            System.out.println(this.name);
        }
    };

    public String name;

    private Season(String name){
        this.name = name;
    }

    public abstract void show();
}


public class TestSeason2 {
    public static void main(String[] args) {
        System.out.println(Season.AUTUMN);

        //Season spring =  Season.SPRING;
    }
}